package com.ruoyi.service.contract.client;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.file.domain.ContractFile;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Component
@FeignClient(name="ruoyi-file")
public interface FileClient {

    @GetMapping("/file/zhangpu")
    public String test();

    @PostMapping("/file/add")
    public AjaxResult add(@RequestBody ContractFile contractFile);

    @GetMapping("/file/searchContractFile")
    public List<ContractFile> searchContractFile(String contractNo);

}
